package com.zhentao.test;

public class Person {
  public void sayHello() {
    System.out.println("hello");
  }

  public static void main(String[] args) {
    Person per = new Student();
    
  }
}

class Student extends Person {

  public void say(){
    System.out.println("hello");
  }
}
